package com.canaan.business.domain.basic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.canaan.common.annotation.Excel;
import com.canaan.common.core.domain.BaseEntity;
import com.canaan.common.annotation.TableName;
/**
 * 库存策略对象 wms_stock_strategy
 *
 * @author canaan
 * @date 2025-04-15
 */
@ApiModel(description = "wms_stock_strategy")
@TableName("wms_stock_strategy")
public class StockStrategy extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private String no;

    /** 类型:0-入库，1-出库 */
    @Excel(name = "类型:0-入库，1-出库")
    @ApiModelProperty("类型:0-入库，1-出库")
    private Long type;

    /** 策略类型：0-空料架，1-满料架 */
    @Excel(name = "策略类型：0-空料架，1-满料架")
    @ApiModelProperty("策略类型：0-空料架，1-满料架")
    private Integer strategyType;

    /** 类名 */
    @Excel(name = "类名")
    @ApiModelProperty("类名")
    private String className;

    /** 是否默认 */
    @Excel(name = "是否默认")
    @ApiModelProperty("是否默认")
    private String isDefault;

    /** 是否删除：1是 0否 */
    @ApiModelProperty("是否默认")
    private String delFlag;

    public Integer getStrategyType() {
        return strategyType;
    }

    public void setStrategyType(Integer strategyType) {
        this.strategyType = strategyType;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }
    public void setClassName(String className)
    {
        this.className = className;
    }

    public String getClassName()
    {
        return className;
    }
    public void setIsDefault(String isDefault)
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault()
    {
        return isDefault;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("type", getType())
            .append("className", getClassName())
            .append("isDefault", getIsDefault())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
